from flask import Flask, abort, redirect, url_for
app = Flask(__name__)

@app.route('/')
def index():
    return redirect(url_for('login'))

@app.route('/login')
def login():
    abort(401)

@app.errorhandler(404)
def page_not_found(error):
    return "opps, u r lost", 404

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=8000, debug=True)